<template>
	<div>
		<h1>B组件</h1>
		{{ s }}
	</div>
</template>

<script setup>
import emitter from '../plugins/Bus.js'

let s = ref('');

onBeforeMount(()=>{

	emitter.on('fn',e=>{
		s.value = e.value;
	})

})

</script>